package 程序员代码面试指南.位运算;

public class 判断奇偶 {

    public static boolean isOdd(int n) {
        return (n & 1) == 1;
    }

    public static void main(String[] args) {
        System.out.println(isOdd(3));
    }
}
